package com.devunion.bogdan.view.swixml;

import org.swixml.SwingEngine;
import org.swixml.ConverterLibrary;
import com.devunion.bogdan.view.toolbar.ToolbarButton;
import com.devunion.bogdan.view.toolbar.ToolbarToggleButton;

/**
 * @author Viktar Liaskovich
 */
public class CustomSwingEngine extends SwingEngine {
    public CustomSwingEngine(Object client) {
        super(client);

        this.getTaglib().registerTag("ToolbarButton", ToolbarButton.class );
        this.getTaglib().registerTag("ToolbarToggleButton", ToolbarToggleButton.class );
        ConverterLibrary.getInstance().register(ToolbarButton.class, new ToolbarButtonConverter());
        ConverterLibrary.getInstance().register(ToolbarToggleButton.class, new ToolbarToggleButtonConverter());
    }
}
